package com.ctsi.ssdc.domain;

import com.ctsi.ssdc.annotation.AutoId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.ZonedDateTime;
//测试
/**
 * @author ctsi-biyi-generator
*/
@ApiModel(description = "LitemallAd")
public class LitemallAd implements Serializable {
    /**
     * @Fields id 
     */
    @ApiModelProperty("")
    @AutoId(primaryKey = "id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Integer id;

    /**
     * @Fields name 广告标题
     */
    @ApiModelProperty("name")
    private String name;

    /**
     * @Fields link 所广告的商品页面或者活动页面链接地址
     */
    @ApiModelProperty("link")
    private String link;

    /**
     * @Fields url 广告宣传图片
     */
    @ApiModelProperty("url")
    private String url;

    /**
     * @Fields position 广告位置：1则是首页
     */
    @ApiModelProperty("position")
    private Byte position;

    /**
     * @Fields content 活动内容
     */
    @ApiModelProperty("content")
    private String content;

    /**
     * @Fields startTime 广告开始时间
     */
    @ApiModelProperty("startTime")
    private ZonedDateTime startTime;

    /**
     * @Fields endTime 广告结束时间
     */
    @ApiModelProperty("endTime")
    private ZonedDateTime endTime;

    /**
     * @Fields enabled 是否启动
     */
    @ApiModelProperty("enabled")
    private Boolean enabled;

    /**
     * @Fields addTime 创建时间
     */
    @ApiModelProperty("addTime")
    private ZonedDateTime addTime;

    /**
     * @Fields updateTime 更新时间
     */
    @ApiModelProperty("updateTime")
    private ZonedDateTime updateTime;

    /**
     * @Fields deleted 逻辑删除
     */
    @ApiModelProperty("deleted")
    private Boolean deleted;

    private static final long serialVersionUID = 1L;

    /** 
     * @return id 
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /** 
     * @return name 广告标题
     */
    public String getName() {
        return name;
    }

    /**
     * @param name 广告标题
     */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    /** 
     * @return link 所广告的商品页面或者活动页面链接地址
     */
    public String getLink() {
        return link;
    }

    /**
     * @param link 所广告的商品页面或者活动页面链接地址
     */
    public void setLink(String link) {
        this.link = link == null ? null : link.trim();
    }

    /** 
     * @return url 广告宣传图片
     */
    public String getUrl() {
        return url;
    }

    /**
     * @param url 广告宣传图片
     */
    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    /** 
     * @return position 广告位置：1则是首页
     */
    public Byte getPosition() {
        return position;
    }

    /**
     * @param position 广告位置：1则是首页
     */
    public void setPosition(Byte position) {
        this.position = position;
    }

    /** 
     * @return content 活动内容
     */
    public String getContent() {
        return content;
    }

    /**
     * @param content 活动内容
     */
    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    /** 
     * @return start_time 广告开始时间
     */
    public ZonedDateTime getStartTime() {
        return startTime;
    }

    /**
     * @param startTime 广告开始时间
     */
    public void setStartTime(ZonedDateTime startTime) {
        this.startTime = startTime;
    }

    /** 
     * @return end_time 广告结束时间
     */
    public ZonedDateTime getEndTime() {
        return endTime;
    }

    /**
     * @param endTime 广告结束时间
     */
    public void setEndTime(ZonedDateTime endTime) {
        this.endTime = endTime;
    }

    /** 
     * @return enabled 是否启动
     */
    public Boolean getEnabled() {
        return enabled;
    }

    /**
     * @param enabled 是否启动
     */
    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }

    /** 
     * @return add_time 创建时间
     */
    public ZonedDateTime getAddTime() {
        return addTime;
    }

    /**
     * @param addTime 创建时间
     */
    public void setAddTime(ZonedDateTime addTime) {
        this.addTime = addTime;
    }

    /** 
     * @return update_time 更新时间
     */
    public ZonedDateTime getUpdateTime() {
        return updateTime;
    }

    /**
     * @param updateTime 更新时间
     */
    public void setUpdateTime(ZonedDateTime updateTime) {
        this.updateTime = updateTime;
    }

    /** 
     * @return deleted 逻辑删除
     */
    public Boolean getDeleted() {
        return deleted;
    }

    /**
     * @param deleted 逻辑删除
     */
    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        LitemallAd other = (LitemallAd) that;
        return (this.getId() == null ? other.getId() == null :
				 this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null :
				 this.getName().equals(other.getName()))
            && (this.getLink() == null ? other.getLink() == null :
				 this.getLink().equals(other.getLink()))
            && (this.getUrl() == null ? other.getUrl() == null :
				 this.getUrl().equals(other.getUrl()))
            && (this.getPosition() == null ? other.getPosition() == null :
				 this.getPosition().equals(other.getPosition()))
            && (this.getContent() == null ? other.getContent() == null :
				 this.getContent().equals(other.getContent()))
            && (this.getStartTime() == null ? other.getStartTime() == null :
				 this.getStartTime().equals(other.getStartTime()))
            && (this.getEndTime() == null ? other.getEndTime() == null :
				 this.getEndTime().equals(other.getEndTime()))
            && (this.getEnabled() == null ? other.getEnabled() == null :
				 this.getEnabled().equals(other.getEnabled()))
            && (this.getAddTime() == null ? other.getAddTime() == null :
				 this.getAddTime().equals(other.getAddTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null :
				 this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getDeleted() == null ? other.getDeleted() == null :
				 this.getDeleted().equals(other.getDeleted()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getLink() == null) ? 0 : getLink().hashCode());
        result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode());
        result = prime * result + ((getPosition() == null) ? 0 : getPosition().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getStartTime() == null) ? 0 : getStartTime().hashCode());
        result = prime * result + ((getEndTime() == null) ? 0 : getEndTime().hashCode());
        result = prime * result + ((getEnabled() == null) ? 0 : getEnabled().hashCode());
        result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
        return result;
    }
}